$(function() {
	var user=getUser_C();
	flushUser();	//添加刷新User的方法 方便新增邮箱和支付密码之后及时更新显示状态
    if (user) {
		if (user.email == '' || user.email == null || user.email == 'null') {
			$("#emailStatus").text('新增');
			$("#emailStatus_a").attr("title", "点击新增邮箱").attr("href", "/Lvscore_User_M/userWeb/views/accounterCenter/bindNewEmail.html?code=1");
		}
		else {
			$("#emailStatus").text('修改');
			$("#emailStatus_a").attr("title", "点击修改邮箱").attr("href", "/Lvscore_User_M/userWeb/views/accounterCenter/changeEmail.html");
		}
		ajaxGetPayPswStatus(getPayPswStatus);
	}
});

function getPayPswStatus(status) {
	if (isNotEmpty(status)){
		$("#payPswStatus").text('修改');
		$("#payPswStatus_a").attr("title","点击修改支付密码").attr("href","/Lvscore_User_M/userWeb/views/accounterCenter/newPaymentPassword.html");
	} else {
		$("#payPswStatus").text('设置');
		$("#payPswStatus_a").attr("title","点击设置支付密码").attr("href","/Lvscore_User_M/userWeb/views/accounterCenter/setPaymentPsd.html");
	}
}